package com.aisile.wemedia.mapper;

import com.aisile.model.admin.dtos.NewsAuthDto;
import com.aisile.model.admin.vos.WmNewsVo;
import com.aisile.model.media.pojos.WmNews;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther:yry
 * @Date:2024/1/6 0006
 * @VERSON:1.0
 */
@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {

    // 根据分页条件查询
    List<WmNewsVo> findListByPage(@Param("dto") NewsAuthDto dto);
    // 统计条数
    int findCountByPage(@Param("dto") NewsAuthDto dto);

}
